/*
 * NodeMatrix.fx
 *
 * Created on 22.03.2010, 0:34:11
 */

package javafx191labs.agordeev.game.view;

import javafx191labs.agordeev.game.view.singleNode.Row;
import javafx191labs.agordeev.game.view.singleNode.Column;

/**
 * @author r4diantq
 */

public class NodeMatrix{
    public var posX : Number;
    public var posY : Number;
    public var row : Row[] = [Row{column:[Column{posX:bind posX, posY: bind posY}]}];

    public function InsColumn(row_number : Integer, col_number : Integer) : Void{
        insert Column{posX: col_number * 35, posY: row_number * 35} into row[row_number].column;
        if(col_number == 0){
            delete row[row_number].column[0];
        }
    }
    public function InsRow(row_number : Integer) : Void{
        insert Row{column:[Column{posX: 0, posY: row_number * 50}]} into row;
    }
}
